package StudyCode.summary.mycollection;

import java.util.LinkedHashSet;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class RemoveSpecifiedElementFromLinkedHashSet {
	public static void main(String[] args) {
		LinkedHashSet lhashSet = new LinkedHashSet();
		lhashSet.add(new Integer("1"));
		lhashSet.add(new Integer("2"));
		lhashSet.add(new Integer("3"));

		System.out.println("LinkedHashSet 删除前: " + lhashSet);

		boolean blnRemoved = lhashSet.remove(new Integer("2"));
		System.out.println("LinkedHashSet 删除2后? " + lhashSet);

	}
}
